﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Car
{
    class Batmobile:Car,Ifly
    {
        private string name;
        public string Name { get; set; }
        public Batmobile(string name) : base(name)
        {
            this.name = name;
        }

        public void fly()
        {
            Console.WriteLine("名字叫{0}的蝙蝠战车在飞",this.name);
        }
    }
}
